#include "cdatathread.h"

CDataThread::CDataThread()
{
    m_nStartUpdate = true;
}

CDataThread::~CDataThread()
{

}

void CDataThread::run()
{
    int startPointX =0;

    while(m_nStartUpdate)
    {
        float thermValue= cos(startPointX/5.0);
        emit sig_UpdateWenduData(qAbs(thermValue));

        startPointX++;
        usleep(100*1000);
    }
}

void CDataThread::StopUpdateData()
{
    m_nStartUpdate = false;
}
